<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form method="post" action="editHostelDetails.action?type=edithostel">
	<table>
	
	<s:iterator value="hostels">

		<tr>
			<td>Residential Id</td>
			<td><input type="hidden" name="residential_id" value='<s:property value="residential_id"/>'/><s:property value="residential_id"/></td>
		</tr>
		<tr>
			<td>Residential Name</td>
			<td><input type="text" name="residential_name" value='<s:property value="residential_name"/>'/></td>
		</tr>
		<tr>
			<td>Residential Type</td>
			<td><input type="text" name="residential_type" value='<s:property value="residential_type"/>'/></td>
		</tr>
		<tr>
			<td>Warden Id</td>
			<td><input type="text" name="warden_id" value='<s:property value="warden_id"/>'/></td>
		</tr>
		<tr>
			<td>Warden Name</td>
			<td><input type="text" name="warden_name" value='<s:property value="warden_name"/>'/></td>
		</tr>
		<tr>
		<td>Capacity</td>
			<td><input type="text" name="capacity" value='<s:property value="capacity"/>'/></td>
		</tr>

	</s:iterator>
	<tr><td><input type="submit" value="Submit"/></td></tr>
	</table>
	</form>
</body>
</html>